<?php

/**
 * 路由文件
 */
use think\Route;

/**
 *钉钉任务工单路由
 */
$prefix = 'dingding';
Route::rule($prefix.'/task/index','jobmanagement/Index/index');
Route::rule($prefix.'/task/productSave','jobmanagement/Product/productSave'); //保存商品
Route::rule($prefix.'/task/productEdit','jobmanagement/Product/productEdit'); //新增或保存产品
Route::rule($prefix.'/task/productInfo','jobmanagement/Product/productInfo'); //产品详情
Route::rule($prefix.'/task/productList','jobmanagement/Product/productList'); //产品列表
Route::rule($prefix.'/task/productDelete','jobmanagement/Product/productDelete'); //产品删除

/******************* 任务单路由 start *****************/
Route::rule($prefix.'/task/taskParam','jobmanagement/Task/getTaskListParam');
Route::rule($prefix.'/task/waitAuditTask','jobmanagement/Task/getTaskWaitAuditList');
Route::rule($prefix.'/task/taskAudit','jobmanagement/Task/taskAuditCheck');
Route::rule($prefix.'/task/allTask','jobmanagement/Task/getTaskAllList');
Route::rule($prefix.'/task/myTask','jobmanagement/Task/getTaskMyList');
Route::rule($prefix.'/task/taskAdd','jobmanagement/Task/taskAdd');
Route::rule($prefix.'/task/taskProd','jobmanagement/Task/taskProduct');
Route::rule($prefix.'/task/prodLadder','jobmanagement/Task/getProductLadder');
Route::rule($prefix.'/task/taskSave','jobmanagement/Task/taskSave');
Route::rule($prefix.'/task/taskConfirmProduce','jobmanagement/Task/taskConfirmProduce');
Route::rule($prefix.'/task/settleTask','jobmanagement/Task/settleTask');
Route::rule($prefix.'/task/taskWithMe','jobmanagement/Task/getTaskWithMeList');
Route::rule($prefix.'/task/taskInfo','jobmanagement/Task/getTaskInfo');
/******************* 任务单路由 end   *****************/

/******************* 结算单路由 start   *****************/
Route::rule($prefix.'/task/settleParam','jobmanagement/Settle/settleParam');
Route::rule($prefix.'/task/waitSettle','jobmanagement/Settle/waitSettle');
Route::rule($prefix.'/task/allSettle','jobmanagement/Settle/allSettle');
Route::rule($prefix.'/task/mySettle','jobmanagement/Settle/mySettle');
Route::rule($prefix.'/task/settleDetail','jobmanagement/Settle/settleDetail');
Route::rule($prefix.'/task/workerApplySettle','jobmanagement/Settle/workerApplySettle');
Route::rule($prefix.'/task/auditSettle','jobmanagement/Settle/auditSettle');
/******************* 结算单路由 end     *****************/

/******************* 个人资金 start   *****************/
Route::rule($prefix.'/task/workerCapital','jobmanagement/User/workerCapital');
Route::rule($prefix.'/task/workerCapitalMonth','jobmanagement/User/getWorkerCapitalMonthCensus');
Route::rule($prefix.'/task/capitalLog','jobmanagement/User/workerCapitalLog');
Route::rule($prefix.'/task/getMoney','jobmanagement/User/workWithdraw');
Route::rule($prefix.'/task/leaderList','jobmanagement/User/leaderList');
Route::rule($prefix.'/task/removeLeader','jobmanagement/User/removeLeader');
Route::rule($prefix.'/task/addLeader','jobmanagement/User/addLeader');
Route::rule($prefix.'/task/editUserAccountCode','jobmanagement/User/editUserAccountCode');
Route::rule($prefix.'/task/notCheck','jobmanagement/User/notCheck');
/******************* 个人资金   end   *****************/

/*********************** 超级管理员 start ************************/
Route::rule($prefix.'/task/addAdminParam','jobmanagement/Super/addAdminParam');
Route::rule($prefix.'/task/saveAdmin','jobmanagement/Super/saveAdmin');
Route::rule($prefix.'/task/deleteAdmin','jobmanagement/Super/deleteAdmin');
Route::rule($prefix.'/task/adminList','jobmanagement/Super/getAdminList');
Route::rule($prefix.'/task/saveTransferConfig','jobmanagement/TransferConfig/saveTransferConfig');
Route::rule($prefix.'/task/viewTransferConfig','jobmanagement/TransferConfig/viewTransferConfig');
/*********************** 超级管理员 end ************************/

/*********************** 阶梯计费审核员 start ************************/
Route::rule($prefix.'/task/saveLadderAudit','jobmanagement/Super/saveLadderAudit');
Route::rule($prefix.'/task/deleteAdmin','jobmanagement/Super/deleteAdmin');
Route::rule($prefix.'/task/ladderAuditList','jobmanagement/Super/ladderAuditList');
/*********************** 阶梯计费审核员 end ************************/


/*********************** 图表显示 start ************************/
Route::rule($prefix.'/task/userCount','jobmanagement/Chart/userCount');
Route::rule($prefix.'/task/todayAmount','jobmanagement/Chart/todayAmount');
Route::rule($prefix.'/task/todayTask','jobmanagement/Chart/getTodayFinishTask');
Route::rule($prefix.'/task/weekData','jobmanagement/Chart/getLastWeekData');
Route::rule($prefix.'/task/chartData','jobmanagement/Chart/chartData');
Route::rule('ddchart','jobmanagement/Chart/chartView');
Route::rule('wapexcel','jobmanagement/Chart/exportCapital');
/*********************** 图表显示 end   ************************/
// alipay回调地址
Route::rule('alipay/callback', 'admin/alipay/callback');

// 测试

Route::rule($prefix.'/task/test','jobmanagement/Test/test');
Route::rule($prefix.'/task/alipay','jobmanagement/Alipay/index');



/*****************钉钉回调相关数据获取路由**********************/
$prefix_cb = 'callback';
Route::rule($prefix_cb.'/accept/register','audit_api/Accept/registerCallBack');//注册回调
Route::rule($prefix_cb.'/accept/update','audit_api/Accept/updateCallBack');//更新回调
Route::rule($prefix_cb.'/accept/delete','audit_api/Accept/deleteCallBack');//删除回调
Route::rule($prefix_cb.'/accept/index','audit_api/Accept/index');//回调地址
Route::rule($prefix_cb.'/audit/addAudit','audit_api/Subscribe/addAuditCallBack');
Route::rule($prefix_cb.'/audit/accept','audit_api/accept/acceptDingtalkcheck');

// 临时文件
Route::rule('/demo', 'jobmanagement/Temp/temp');

